package com.tanhua.dubbointerface.api;

import com.tanhua.model.domain.BlackList;
import com.tanhua.model.domain.Settings;

public interface SettingsApi {

    /**
     * 通过userId查找设置信息并返回
     * @param userId
     * @return
     */
    Settings findSettingsByUserId(Long userId);

    /**
     * 存储通用设置
     * @param settings
     * @return
     */
    Long save(Settings settings);

    /**
     * 更新通知设置
     * @param settings
     */
    void update(Settings settings);

    /**
     * 从黑名单取消
     */
    void deleteBlacklist(BlackList blackList);

}